#!/bin/bash

sum=0
for ((i=1; i<=100; i++))
do
    ((sum += i))
done
echo "The sum is: $sum"

sum=0
for n in 1 2 3 4 5 6
do
    echo $n
     ((sum+=n))
done
echo "The sum is "$sum


for str in "C语言中文网" "http://c.biancheng.net/" "成立7年了" "日IP数万"
do
    echo $str
done


sum=0
for n in {1..100}
do
    ((sum+=n))
done
echo $sum


for c in {A..z}
do
    printf "%c" $c
done


sum=0
for n in $(seq 2 2 100)
do
	((sum += n))
done

echo $sum


for filename in $(ls *.sh)
do
    echo $filename
done


function func(){
    for str in $@
    do
        echo $str
    done
}
func C++ Java Python C#
